//
//  MAAFConfig.m
//  CJRailTransport
//
//  Created by Hank on 2018/1/4.
//  Copyright © 2018年 amplity. All rights reserved.
//

#import "MAAFConfig.h"

@implementation MAAFConfig

+ (MAAFConfig *)sharedInstance {
    static id sharedInstance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        sharedInstance = [[self alloc] init];
    });
    return sharedInstance;
}

// 获取当前时间
- (NSString *)getNowTime
{
    NSDate *date = [NSDate date];
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    [formatter setTimeZone:[NSTimeZone timeZoneWithName:@"+0800"]];
    [formatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
    NSString *dateStr = [NSString stringWithFormat:@"%@", [formatter stringFromDate:date]];
    return dateStr;
}

@end
